package com.easylinkin.sm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.sm.entity.Department;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 组织机构Mapper
 *
 * @author wujie
 * @since 0.1.1,  2019/08/23
 */
@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {

  List<Department> getDeptPage(@Param("queryParams") Department queryParams, Page page);

  List<Department> getDeptPage(@Param("queryParams") Department queryParams);

  Department findOne(@Param("id")Long id);
}
